<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Nessuna richiesta trovata</title>
</head>
<body>
<form name="bacheca" method="post" action="BachecaServlet">
   <input type="hidden" name="username" value="<%=request.getAttribute("mittente") %>">
   <input type="hidden" name="nome" value="<%=request.getAttribute("nome") %>">
   <input type="hidden" name="cognome" value="<%=request.getAttribute("cognome") %>">
</form>
<form name="notifiche" method="post" action="NotificheServlet">
   <input type="hidden" name="username" value="<%=request.getAttribute("mittente") %>">
   <input type="hidden" name="nome" value="<%=request.getAttribute("nome") %>">
   <input type="hidden" name="cognome" value="<%=request.getAttribute("cognome") %>">
</form>
<form name="ricerca" method="post" action="Ricerca.jsp">
   <input type="hidden" name="id" value="<%=request.getAttribute("mittente") %>">
   <input type="hidden" name="nome" value="<%=request.getAttribute("nome") %>">
   <input type="hidden" name="cognome" value="<%=request.getAttribute("cognome") %>">
</form>
<p>
   <a href="javascript:document.bacheca.submit()">Bacheca</a>
   <a href="javascript:document.notifiche.submit()">Notifiche</a>
   <a href="MostraMioProfiloServlet?id=<%= request.getAttribute("mittente") %>"><%= request.getAttribute("nome") %><%= request.getAttribute("cognome") %></a>
   <a href="javascript:document.ricerca.submit()">Ricerca</a>
   <a href="LogoutServlet?username=<%= request.getAttribute("mittente")%>&user=utente">Logout</a>
</p>
<%= request.getAttribute("msg") %>   
<%
    String dest = request.getAttribute("destinatario").toString();
    String mit = request.getAttribute("mittente").toString();
    int amico = Integer.parseInt(request.getAttribute("amico").toString());
    
    out.println("<a href=\"ProfiloUtenteServlet?username=" + dest + "&from=ricFeed&session=" + mit + "&amico=" + amico + "\">");
    out.println("Torna al profilo di " + dest);
    out.println("</a>");
%>
</body>
</html>